﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;
using YJKOpeningCommon.OpeningEX;

namespace YJKOpeningCreate.Cmd
{
	public class MassSelectionFilter : ISelectionFilter
	{
		public bool AllowElement(Element element)
		{
			if (OpeningXData.IsIncludeSchema(element))
			{
				Dictionary<Element, bool> openings = CmdOpeningDimension.GetOpenings();
				foreach (Element element2 in openings.Keys)
				{
					if (element2.Id == element.Id)
					{
						return true;
					}
				}
				return false;
			}
			return false;
		}

		public bool AllowReference(Reference reference, XYZ position)
		{
			throw new NotImplementedException();
		}
	}
}
